package my.food.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import my.food.bean.Result;
import my.food.entity.Comment;
import my.food.mapper.CommentMapper;
import my.food.service.ICommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ling
 * Date: 2024-05-19
 * Time: 13:08
 */
@Service
public class CommentServiceImpl extends ServiceImpl<CommentMapper, Comment> implements ICommentService {

    @Autowired
    private CommentMapper commentMapper;

    @Override
    public List<Comment> commentList() {
        List<Comment> commentList = commentMapper.selectAll();

        return commentList;
    }
}
